<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./index.css">
</head>

<body>
    <!-- 整体 -->
    <div class="container right-panel-active">
        <!-- 注册 -->
        <div class="container_from container--signup">
            <form action="#" class="from" id="from1">
                <h2 class="from_title">Sign Up</h2>
                <input type="text" placeholder="User" class="input" id="un" onblur="formValiad.checkUserName()"/> <span class="imsg" id="userName">请输入用户名</span>
                <input type="email" placeholder="Email" class="input" id="ue" onblur="formValiad.checkUserEmail()"/> <span class="imsg" id="userEmail">请输入邮箱</span>
                <input type="password" placeholder="Password" class="input" id="upwd" onblur="formValiad.checkUserPassword()"/> <span class="imsg" id="userPassword">请输入密码</span>
                <button class="btn">Sign Up</button>
            </form>
        </div>

        <!-- 登录 -->
        <div class="container_from container--signin">
            <form action="#" class="from" id="from2">
                <h2 class="from_title">Sign In</h2>
                <input type="email" placeholder="Email" class="input" id="inun" onblur="formValiad.checkInUserEmail()"/> <span class="imsg" id="inUserName">请输入邮箱</span>
                <input type="password" placeholder="Password" class="input" id="inupwd" onblur="formValiad.checkUserInPassword()"/> <span class="imsg" id="inUserPwd">请输入密码</span>
                <a href="#" class="link">Forgot your password?</a>
                <button class="btn">Sign In</button>
            </form>
        </div>
        <!-- 遮罩层 -->
        <div class="container-overlay">
            <div class="overlay">
                <div class="overlay_panel overlay-left">
                    <button class="btn" id="signin">已有账号，直接登录</button>
                </div>

                <div class="overlay_panel overlay-right">
                    <button class="btn" id="signup">没有账号，点击注册</button>
                </div>
            </div>
        </div>
    </div>
    <script src="./index.js"></script>
</body>

</html>